newDate=new Date() newDate=""+newDate.getYear()+"-"+[newDate.getMonth()+1]+"-"+newDate.getDate()+"" //读取COOKIE function getCookie (CookieName) { var CookieString = document.cookie; var CookieSet = CookieString.split (';'); var SetSize = CookieSet.length; var CookiePieces var ReturnValue = ""; var x = 0; for (x = 0; ((x < SetSize) && (ReturnValue == "")); x++) { CookiePieces = CookieSet[x].split ('='); if (CookiePieces[0].substring (0,1) == ' ') { CookiePieces[0] = CookiePieces[0].substring (1, CookiePieces[0].length); } if (CookiePieces[0] == CookieName) { ReturnValue = CookiePieces[1]; var value =ReturnValue } } return value; } //跳出确认 function checkclick(msg){if(confirm(msg)){event.returnValue=true;}else{event.returnValue=false;}} //跳转页面显示 function ShowPage(TotalPage,PageIndex,url){ document.write(""); if (PageIndex<6){PageLong=11-PageIndex;} else if (TotalPage-PageIndex<6){PageLong=10-(TotalPage-PageIndex)} else{PageLong=5;} for (var i=1; i <= TotalPage; i++) { if (i < PageIndex+PageLong && i > PageIndex-PageLong || i==1 || i==TotalPage){ if (PageIndex==i){document.write("");}else{document.write("");} } } document.write("
"+PageIndex+"/"+TotalPage+" "+ i +"  "+ i +" 
"); } //全选复选框 function CheckAll(form){for (var i=0;i") // 菜单END // add area script function focusEdit(editBox) { if ( editBox.value == editBox.Helptext ) { editBox.value = ''; editBox.className = 'editbox'; } return true; } function blurEdit(editBox) { if ( editBox.value.length == 0 ) { editBox.className = 'editbox Graytitle'; editBox.value = editBox.Helptext; } } function ValidateTextboxAdd(box, button) { var buttonCtrl = document.getElementById( button ); if ( buttonCtrl != null ) { if (box.value == "" || box.value == box.Helptext) { buttonCtrl.disabled = true; } else { buttonCtrl.disabled = false; } } } // add area script end function loadtree(ino){ document.frames["hiddenframe"].location.replace("ForumTree.asp?id="+ino+"") } function loadThreadFollow(ino,Online){ var targetImg =document.getElementById("followImg" + ino); var targetDiv =document.getElementById("follow" + ino); if (targetDiv.style.display!='block'){ if(targetImg.loaded=="no"){document.frames["hiddenframe"].location.replace("loading.asp?id="+ino+"&ForumID="+Online+"");} targetDiv.style.display="block"; targetImg.src="images/minus.gif"; }else{ targetDiv.style.display="none"; targetImg.src="images/plus.gif"; } } function ToggleMenuOnOff (menuName) { var menu = document.getElementById(menuName); if (menu.style.display == 'none') { menu.style.display = 'block'; } else { menu.style.display = 'none'; } }